package org.neuedu.chapter04_0617;

import java.util.Arrays;

public class ArrayDemo08 {
    public static void main(String[] args) {
        int[] arr1 = {1, 2, 3, 4, 5};
        int[] arr2 = {6, 7, 8, 9, 10, 11, 12, 13};
        // 源数组，源数组拷贝起始索引，目标数组，目标数组起始索引，长度
        System.arraycopy(arr1,1,arr2,3,3);
        System.out.println(Arrays.toString(arr2));
    }
}
